To compensate for the weight of an object use other object masses or lift.
The wing shape of birds induces lift when air is streaming.
A ship lift has to overcome altitude differences. It will be used a counter mass for lifting up.